const express = require('express')
const compression = require('compression')
const ip = require('ip')
const defaultPort = 9999
const IP = ip.address()
const app = express()
app.use(compression())
app.use(express.static('./dist'))
const server = app.listen(defaultPort, function (err) {
    if (err) {
        console.log(err)
        return
    }
    const port = server.address().port
    console.info('复制打开浏览器', 'http://' + IP + ':' + port)
})